const router = require('koa-router')()
const Controller = require('../controllers/hanziCharacterController')

router.prefix('/character')

router.get('/', Controller.getAllHanziCharacters)
router.get('/:id', Controller.getHanziCharacterById)
router.post('/', Controller.createHanziCharacter)
router.put('/:id', Controller.updateHanziCharacter)
router.delete('/:id', Controller.deleteHanziCharacter)

module.exports = router